package model;

public class Player {

	private String name;
	private String number;
	private int passes;
	private int goals;
	
	public Player(String name,String number){
		setName(name);
		setNumber(number);
	}
	
	public String getName(){
		return name;
	}
	
	public String getNumber(){
		return number;
	}
	
	public void setNumber(String str){
		number = str;
	}
	
	public void setName(String str){
		name = str;
	}
	
	public String toString(){
		String string = number+" - "+name;
		return string;
	}
	
	public int getPoints(){
		return passes+(2*goals);
	}
	public void addGoalPoint(){
		goals++;
	}
	public void addPassPoints(){
		passes++;
	}
	public int getGoals(){
		return goals;
	}
	public int getPasses(){
		return passes;
	}
}
